Using AI to write Python code for Raspberry Pi